﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Xpo;
using Zero.DataLayer.Donnees;
using Zero.POCO;
using Zero.POCO.Helper;

namespace Zero.DataLayer.Donnees
{
}
public class XpoMarque : XPBaseObject
     {
            public XpoMarque()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

          public XpoMarque(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }


          
        private Guid _Oid;
        [Key]
         public Guid Oid
        {
            get { return _Oid; }
            set { SetPropertyValue("Oid", ref _Oid, value); }
        }

        private string _Name;
        public string Name 
        {
            get { return _Name; }
            set { SetPropertyValue("Name", ref _Name, value); }
        }



        private TypeMarque _Type;
        public TypeMarque Type
        {
            get { return _Type; }
            set { SetPropertyValue("Type", ref _Type, value); }
        }

        
        private XpoAnnonceur _Annonceur;
        [Aggregated, Association("XpoMarque-XpoAnnonceur")]
        public XpoAnnonceur Annonceur
        {
            get { return _Annonceur; }
            set { SetPropertyValue("Annonceur", ref _Annonceur, value); }
        }




        [Aggregated, Association("XpoCompaign-XpoMarque")]
        public XPCollection<XpoCompaign> XpoCompaigns
        {
            get { return GetCollection<XpoCompaign>("XpoCompaigns"); }
        }
     }